home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / pdcurs21.zip / PORTABLE.ZIP / NOBREAK.C < prev    next >
Text File  |  1992-11-21  |  2KB  |  48 lines

  1. #define        CURSES_LIBRARY  1
  2. #include <curses.h>
  3. #undef nocbreak
  4.  
  5. #ifndef        NDEBUG
  6. char *rcsid_nocbreak = "$Header: c:/curses/portable/RCS/nocbreak.c%v 2.0 1992/11/15 03:29:04 MH Rel $";
  7. #endif
  8.  
  9.  
  10.  
  11.  
  12. /*man-start*********************************************************************
  13.  
  14.   nocbreak()   - set/clear cbreak mode
  15.  
  16.   X/Open Description:  cbreak() and nocbreak()
  17.        These two routines put the terminal into and out of cbreak mode.
  18.        In cbreak mode, characters typed by the user are immediately
  19.        available to the program and erase/kill character processing is
  20.        not performed.  When out of cbreak mode, the terminal driver
  21.        will buffer characters typed until a newline or carriage return
  22.        is typed.  Interrupt and flow control characters are unaffected
  23.        by this mode.  Initially the terminal may or may not need be
  24.        in cbreak mode.
  25.  
  26.   PDCurses Description:
  27.        There is no additional PDCurses functionality.
  28.  
  29.   X/Open Return Value:
  30.        The nocbreak() function returns OK on success and ERR on error.
  31.  
  32.   PDCurses Errors:
  33.        No errors are defined for these functions.
  34.  
  35.   Portability:
  36.        PDCurses        int nocbreak( void );
  37.        X/Open Dec '88  int nocbreak( void );
  38.        BSD Curses      int nocbreak( void );
  39.        SYS V Curses    int nocbreak( void );
  40.  
  41. **man-end**********************************************************************/
  42.  
  43. int    nocbreak(void)
  44. {
  45.        _cursvar.cbreak = FALSE;
  46.        return( OK );
  47. }
  48.